home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 13 / CU Amiga Magazine's Super CD-ROM 13 (1997)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1997-08].iso / CUCD / Graphics / irit70 / bin / nt_mkdef.cmd < prev    next >
OS/2 REXX Batch file  |  1997-03-26  |  614b  |  15 lines

  1. @echo off
  2.  
  3. Rem
  4. Rem   A crude way to construct DEF file for DLL construction out of OBJ files
  5. Rem for Window NT 4.0. Expects one argument - the library directory
  6. Rem
  7. Rem   The following construction is highly VC++ version dependend (tested
  8. Rem on VC 4.1) and assumes the availability of grep, sed and gawk.
  9. Rem   If you have a better idea how to construct the def file, let me know!!!
  10. Rem   In fact, I cannot believe there is no way in VC++ to construct a DLL
  11. Rem that simply exports ALL external symbols...
  12. Rem
  13.  
  14. dumpbin /symbols %1/*.obj | grep -v UNDEF | grep External | gawk -- {print$NF} | sed -e "s/_//" >> %2
  15.